<template>
  <!-- 订单详情 -->
  <div class="order-detail">
    <!-- 顶部 -->
    <div class="nav-top">
      <router-link to="/index/list">
        <van-icon class="icon" name="wap-home-o" />
      </router-link>

      <div>订单详情</div>
    </div>
    <!-- 订单取消 -->
    <div class="cancel">
      <span>订单取消</span>
    </div>
    <!-- 地址 -->
    <div class="location-address">
      <van-icon class="location" name="location-o" />
      <div class="address">
        <span class="nav-name">xxx</span>
        <span>xxxxxxxxxxx</span>
      </div>
      <div>ssssssss</div>
    </div>
    <!-- 商品 -->
    <div class="commodity">
      <van-card num="2" price="2.00" title="商品标题" thumb="https://img.yzcdn.cn/vant/t-thirt.jpg"></van-card>
    </div>
    <!-- 实付 -->
    <div class="amount">
      <div class="flex jc-sb f12 fd82">
        <div class="f14">商品金额</div>
        <div class="f00">
          <span class="f5">￥</span>
          <span class="f12">122</span>
        </div>
      </div>
      <div class="flex jc-sb f12 fd82 mt-15">
        <div class="f14">运费</div>
        <div class="f00">
          <span class="f5">￥</span>
          <span class="f12">122</span>
        </div>
      </div>
      <div class="flex jc-sb f16 f00 mt-15">
        <div class="f16">实付</div>
        <div class="be33">
          <span class="f10">￥</span>
          <span>122</span>
        </div>
      </div>
    </div>
    <!-- 订单编号 -->
    <div class="order-number flex2 jc-c">
      <div class="mb-8 f8">
        <span class="mr-10">订单编号</span>
        <span>xxx</span>
      </div>
      <div class="f8">
        <span class="mr-10">下单时间</span>
        <span>xxx</span>
      </div>
      <div class="copy">复制</div>
    </div>
    <!-- 重新购买 -->
    <div class="nav-button flex jc-sb aic pl-15 pr-15">
      <van-icon name="service-o" />
      <div class="buy">重新购买</div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.order-detail {
  background-color: #f4f4f4;
  color: #797d82;
  .nav-top {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    position: relative;
    font-size: 16px;
    color: #000;
    background: #fff;
    .icon {
      position: absolute;
      left: 12px;
      top: 12px;
      font-size: 16px;
      color: #000;
    }
    .van-icon-wap-home-o:before {
      content: "\F0DB";
      font-size: 22px;
    }
  }
  .cancel {
    width: 100%;
    height: 80px;
    background-color: #c4373a;
    align-items: center;
    span {
      margin-left: 39px;
      line-height: 80px;
      color: #fff;
    }
  }
  .location-address {
    height: 68px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 46px;
    position: relative;
    box-sizing: border-box;
    background: #fff;
    margin-bottom: 12px;
    .location {
      position: absolute;
      left: 15px;
      top: 15px;
    }
    .nav-name {
      color: #000;
      margin-right: 12px;
    }
    .address {
      margin-bottom: 6px;
    }
  }
  .commodity {
    background: #fff;
    height: 115px;
    .van-card {
      position: relative;
      box-sizing: border-box;
      padding: 15px;
      color: #323233;
      font-size: 12px;
      height: 100%;
      background-color: #fff;
      box-sizing: border-box;
    }
    .van-image {
      background-color: #f9f9f9;
    }
    .van-card__title {
      font-size: 16px;
      color: #000;
    }
    .van-card__content {
      padding: 5px;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      .van-card__price {
        color: #bf3538;
      }
    }
  }
  .amount {
    height: 98px;
    margin-top: 12px;
    background-color: #fff;
    overflow: hidden;
    padding: 16px 16px 12px 14px;
  }
  .order-number {
    height: 61px;
    margin-top: 10px;
    background-color: #fff;
    padding: 0 16px 0 14px;
    position: relative;
    .copy {
      position: absolute;
      top: 12px;
      right: 16px;
      width: 45px;
      line-height: 21px;
      text-align: center;
      border: 1px solid #bec1c5;
      box-sizing: border-box;
      border-radius: 4px;
    }
  }
  .nav-button {
    width: 100%;
    height: 49px;
    background-color: #fff;
    position: fixed;
    bottom: 0;
    box-sizing: border-box;
    .buy {
      width: 85px;
      line-height: 33px;
      text-align: center;
      border: 1px solid #bec1c5;
      box-sizing: border-box;
      // margin-right:12px;
      border-radius: 4px;
    }
  }
}
</style>